package fr.esiag.isidis.pdsTeam.views;

import java.awt.Image;

import javax.swing.ImageIcon;

public class ResourceImage {
	ImageIcon trainR;
	ImageIcon trainL;
	ImageIcon backGround;
	ImageIcon rail;
	ImageIcon station;
	static ResourceImage instance=null;
	private ResourceImage(){
		trainR=new ImageIcon("resources/TrainR.png");
		trainL=new ImageIcon("resources/TrainL.png");
		backGround=new ImageIcon("resources/Reseau.jpg");
		rail=new ImageIcon("resources/rail.png");
		station=new ImageIcon("resources/station.png");
	}
	

	public static ResourceImage getInstance() {
		if(instance==null) instance=new ResourceImage();
		return instance;
	}
	
	public Image getTrainR() {
		return trainR.getImage();
	}

	

	public Image getTrainL() {
		return trainL.getImage();
	}

	

	public Image getBackGround() {
		return backGround.getImage();
	}

	public Image getRail() {
		return rail.getImage();
	}

	public Image getStation()
	{
		return station.getImage();
	}
}
